import java.io.PrintStream;
import java.nio.charset.StandardCharsets;

public class MyFirstApp {
    public static void main (String[] args){
        System.out.println("I Rule");
        System.out.println("The World");

        int x = 5;
        String name = "Dirk";
        x = x * 17;
        System.out.print("x is " + x);
        double d = Math.random();
        // 注释内容

        while(x > 12){
            x = x -1;
        }

        for (int x = 0; x < 12; x=x+1){
            System.out.print("x is now ", +x);
        }

        if(x == 10) {
            System.out.print("x must be 10");
        } else {
            System.out.print("x isn't 10");
        }

        if((x < 3) & (name.equals("Dirk"))) {
            System.out.println("Gently");
        }

        System.out.print("this line runs no matter what");

    }
}
